package com.gz.university.crm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gz.university.crm.dao.ISysPopedomDao;
import com.gz.university.crm.entity.SysPopedom;
import com.gz.university.crm.service.ISysPopedomService;

@Service(value = ISysPopedomService.SERVICE_NAME)
@Transactional(readOnly = true)
public class SysPopedomServiceImpl implements ISysPopedomService {
	private ISysPopedomDao sysPopedomDao;

	public ISysPopedomDao getSysPopedomDao() {
		return sysPopedomDao;
	}
    @Resource(name=ISysPopedomDao.DAO_NAME)
	public void setSysPopedomDao(ISysPopedomDao sysPopedomDao) {
		this.sysPopedomDao = sysPopedomDao;
	}
	@Override
	public List<SysPopedom> findAllSysPopedoms() {
		// TODO Auto-generated method stub
		final String hql="from SysPopedom s order by s.sort asc";
		return this.sysPopedomDao.find(hql);
	}

}
